package com.sense.kukoo.biz_library.adapter

import com.sense.kukoo.biz_library.adapter.provider.FollowTitleItemProvider
import com.sense.kukoo.common.repo.biz.FollowTitleItemBean
import com.sense.kukoo.common.repo.http.bean.UserSearchBean
import com.sense.kukoo.common.wiget.adapter.MultiItemAdapter

class FollowTitleAdapter(

    val listener:FollowTitleEventListener,
    val data:List<FollowTitleItemBean>,

    ): MultiItemAdapter<FollowTitleItemBean>(data) {

    init {
        addItemProvider(FollowTitleItemProvider(listener))
    }

    override fun getItemType(data: MutableList<FollowTitleItemBean>, position: Int): Int {
        return data.get(position).type
    }

    interface FollowTitleEventListener{
        fun onItemClick(user: UserSearchBean)
    }
}